package com.chisheng.caa.pojo.dto;

import com.chisheng.caa.config.CaaProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@ApiModel("Excel 表的工作表信息传输类")
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ExcelSheetDTO implements Serializable {

    @ApiModelProperty("工作表下标")
    private Integer sheetNo;

    @ApiModelProperty("工作表表名")
    private String sheetName;

    @ApiModelProperty("工作表是否处于活动状态")
    private Boolean active;

    public ExcelSheetDTO(CaaProperties.Exporting setting) {
        sheetNo = setting.getSheetNo();
        sheetName = setting.getSheetName();
    }

}
